home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-30 | 2.0 KB | 70 lines | [TEXT/CWIE] |
- // Copyright © 1995 David A. Wilson. All rights reserved.
- // 2-9-95
-
- #ifndef _SFINANCE_
- #define _SFINANCE_
-
- //=======================================================
- #include <somobj.idl>
-
- //=======================================================
- module DevUniv {
-
- //===================================================
- interface SFinance : SOMObject {
- // Savings functions
- double FutureValue(in double presentValue,
- in double annualInterestPercent,
- in short compoundsPerYear,
- in double years);
- double FutureValueWithPayments(in double payment,
- in short paymentsPerYear,
- in short compoundsPerYear,
- in double annualInterestPercent,
- in double years);
- double AnnuityPresentValue(in double payment,
- in double annualInterestPercent,
- in short paymentsPerYear,
- in double years);
- double AnnuityMonths(in double annuity,
- in double monthlyWithdrawal,
- in double annualInterestPercent);
- // Loan functions
- double Payment(in double amountBorrowed,
- in double annualInterestPercent,
- in double years);
- double LoanAmount(in double monthlyPayment,
- in double annualInterestPercent,
- in double years);
- double LoanMonths(in double amountBorrowed,
- in double monthlyPayment,
- in double annualInterestPercent);
- double InterestRate(in double amountBorrowed,
- in double monthlyPayment,
- in double years);
- double BalloonPayment(in double amountBorrowed,
- in double monthlyPayment,
- in double annualInterestPercent,
- in double years);
-
- //-----------------------------------------
- #ifdef __SOMIDL__
- implementation {
- functionprefix = FINAN;
- majorversion = 1; minorversion = 0;
- releaseorder:
- FutureValue, FutureValueWithPayments,
- AnnuityPresentValue, AnnuityMonths,
- Payment, LoanAmount, LoanMonths,
- InterestRate, BalloonPayment;
- }; // implementation
- #endif
-
- }; // interface SFinance
-
- }; // module
-
- //=======================================================
- #endif
-
-